﻿<Window x:Class="BulkDelete.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
        xmlns:local="clr-namespace:BulkDelete"
        mc:Ignorable="d"
        Title="Bulk Delete" Height="800" Width="1200" WindowStartupLocation="CenterScreen" WindowState="Maximized">
    <DockPanel >
        <StackPanel Orientation="Vertical" >
            <GroupBox x:Name="gbxConfigurations" Header="Configurations"  Width="1169" Height="300" HorizontalAlignment="Left" Margin="10,10,0,0" VerticalAlignment="Top">
                <StackPanel Orientation="Vertical" >
                    <StackPanel Orientation="Horizontal" >

                        <Button x:Name="btnClearConfiguration" Content="Clear" HorizontalAlignment="Left" Margin="10,10,0,0" VerticalAlignment="Top" Width="50" Click="btnClearConfiguration_Click" />
                        <Button x:Name="btnSaveConfiguration" Content="Save" HorizontalAlignment="Left" Margin="10,10,0,0" VerticalAlignment="Top" Width="50" Click="btnSaveConfiguration_Click" />

                        <Button x:Name="btnResetConfiguration" Content="Reset to Defaults" HorizontalAlignment="Left" Margin="10,10,0,0" VerticalAlignment="Top" Width="100" Click="btnResetConfiguration_Click"/>
                    </StackPanel>
                    <StackPanel Orientation="Horizontal" Height="35" Margin="0,0,-0.333,0" >
                        <Label x:Name="lblConnectionString1" Margin="10,10,0,0" Content="Connection Template" HorizontalAlignment="Left" Width="124"/>
                        <TextBox x:Name="txtConnectionTemplate"  Margin="10,10,0,-0.333" TextWrapping="Wrap" Text="" HorizontalAlignment="Left" Width="901" TextChanged="txtCSTemplate_TextChanged"/>
                    </StackPanel>
                    <StackPanel Orientation="Horizontal" Margin="10,0,0,0" Height="36" >
                        <Label x:Name="lblServer" Margin="10,10,0,0" Content="Server" HorizontalAlignment="Left" Width="45"/>
                        <TextBox x:Name="txtServerName" Margin="10,10,0,0" TextWrapping="Wrap" Text="" HorizontalAlignment="Left" Width="170" TextChanged="txtServerName_TextChanged"/>
                        <Label x:Name="lblOrganization" Margin="10,10,0,0" Content="Organization (onpremissesonly)" HorizontalAlignment="Left" Width="183"/>
                        <TextBox x:Name="txtOrganizationName" Margin="10,10,0,0" TextWrapping="Wrap" Text="" HorizontalAlignment="Left" Width="153" TextChanged="txtOrganization_TextChanged"/>
                        <Label x:Name="lblUser" Margin="10,10,0,0" Content="User" HorizontalAlignment="Left" Width="35"/>
                        <TextBox x:Name="txtUser" Margin="10,10,0,0" TextWrapping="Wrap" Text="" HorizontalAlignment="Left" Width="153" TextChanged="txtUser_TextChanged"/>
                        <Label x:Name="lblPassword" Margin="10,10,0,0" Content="Password" HorizontalAlignment="Left" Width="60"/>
                        <TextBox x:Name="txtPassword" Margin="10,10,0,0" TextWrapping="Wrap" Text="" HorizontalAlignment="Left" Width="157" TextChanged="txtPassword_TextChanged"/>
                    </StackPanel>
                    <StackPanel Orientation="Horizontal" >
                        <Label x:Name="lblConnectionString" Margin="10,10,0,0" Content="Connection String" HorizontalAlignment="Left" Width="110"/>
                        <TextBox x:Name="txtConnectionString"  Margin="10,10,0,0" TextWrapping="Wrap" Text="" HorizontalAlignment="Left" Width="933"/>
                    </StackPanel>
                    <StackPanel Orientation="Horizontal" >
                        <Label x:Name="lblEntityNames" Margin="10,10,0,0" Content="Entities:" HorizontalAlignment="Left" Width="50"/>
                        <Label x:Name="lblEntityCount" Margin="0,10,0,0" Content="" HorizontalAlignment="Left" Width="100"/>
                    </StackPanel>
                    <TextBox x:Name="txtEntityNames" VerticalScrollBarVisibility="Auto" AllowDrop="True" Margin="10,10,0,0" TextWrapping="Wrap" Text="" HorizontalAlignment="Left" Width="1137" Height="100" AcceptsReturn="True" AcceptsTab="True" AutoWordSelection="True" TextChanged="txtEntityNames_TextChanged"/>

                </StackPanel>
            </GroupBox>
            <Button x:Name="btnRun" Content="Run" HorizontalAlignment="Left" Margin="10,10,0,0" VerticalAlignment="Top" Width="50" Click="btnRun_Click"/>

            <GroupBox x:Name="gbxLog" Header="Log"  Width="1165" Height="400" HorizontalAlignment="Left" Margin="10,10,0,0" VerticalAlignment="Top">
                <StackPanel Orientation="Vertical" >
                    <TextBox x:Name="txtlog" VerticalScrollBarVisibility="Auto" AllowDrop="True" Margin="10,10,0,0" TextWrapping="Wrap" Text="" HorizontalAlignment="Left" Width="1133" Height="300" AcceptsReturn="True" AcceptsTab="True" AutoWordSelection="True" TextChanged="txtEntityNames_TextChanged"/>

                </StackPanel>
            </GroupBox>
        </StackPanel>
    </DockPanel>
</Window>
